package com.tind.tindpracticeapplication.module.scan;

import android.content.Intent;
import android.util.Log;
import android.view.View;

import androidx.annotation.Nullable;

import com.tind.tindpracticeapplication.R;
import com.tind.wyf.baselib.base.BaseActivity;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ScanSeleterActivity extends BaseActivity {
    public static final int BITMAP_CODE = 333;
    public static final int MULTIPROCESSOR_SYN_CODE = 444;
    public static final int MULTIPROCESSOR_ASYN_CODE = 555;
    private static final int REQUEST_CODE = 0X0001;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_scan_seleter;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    public void scanHuaweiOnclick(View view) {
        Intent intent = new Intent(this, HuaWeiMultiScanplusActivity.class);
        startActivityForResult(intent, REQUEST_CODE);
    }

    public void newViewBtnClick(View view) {
        Intent intent = new Intent(this, HuaWeiCustomizedScanplusActivity.class);
        startActivityForResult(intent, REQUEST_CODE);
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
//        Log.e(TAG, "showDialog:显示--- " );
//        String data1 = data.getStringExtra("data");
//        Log.e("showDialog:data1 ", data1);
//        Pattern p = Pattern.compile("|\r");
//        Matcher m = p.matcher(data1);
//        String strNoBlank = m.replaceAll(",");
//        Log.e("showDialog:strNoBlank ", strNoBlank);
    }
}